package com.olda.play.constant;

/**
 * 常量
 */
public abstract class Constant {

    /**系统接口版本号**/
    public static final String VERSION = "";



    /**
     * 根部门ID
     */
    public static final Long ROOT_DEPT_ID = 0l;

    /**
     * 根菜单ID
     */
    public static final Long ROOT_MENU_ID = 0l;

    public static final String KEY_QINIU_TOKEN = "qiniutoken";
    public static final String INITIALIZE_PROMPT = "初始化%s配置成功";

    /*
    * 0、否 1、是
    * */
    public static final Integer IS_YES = 1;
    public static final Integer IS_NO = 1;

    public static final String GRANT_TYPE_KEY = "grant_type";

    public static final String CLIENT_ID_KEY = "client_id";

    /**
     * 认证请求头key
     */
    public static final String AUTHORIZATION_KEY = "Authorization";

    /**
     * JWT令牌前缀
     */
    public static final String JWT_PREFIX = "Bearer ";

    /**
     * JWT存储权限属性
     */
    public static final String JWT_AUTHORITIES_KEY = "authorities";


    /**
     * Basic认证前缀
     */
    public static final String BASIC_PREFIX = "Basic ";

    public static final String REFRESH_TOKEN_KEY = "refresh_token";

    /**
     * 认证身份标识
     */
    public static final String AUTHENTICATION_IDENTITY_KEY = "authenticationIdentity";

    /**
     * 接口文档 Knife4j 测试客户端ID
     */
    public static final String TEST_CLIENT_ID = "client";

    /**
     * 验证码key前缀
     */
    public static final String VALIDATION_CODE_KEY_PREFIX = "CAPTCHA:";


    /**
     * [ {接口路径:[角色编码]},...]
     */
    public static final  String URL_PERM_ROLES_KEY = "system:perm_roles_rule:url";

    /**
     * JWT存储权限前缀
     */
    public static final  String AUTHORITY_PREFIX = "ROLE_";

    /**
     * 超级管理员角色编码
     */
    public static final  String ROOT_ROLE_CODE = "ROOT";

    /**
     * JWT载体key
     */
    public static final  String JWT_PAYLOAD_KEY = "payload";

    public static final  String USER_NAME_KEY = "username";

    public static final  String ROLE_NAME_KEY = "username";

    /**
     * JWT ID 唯一标识
     */
    public static final  String JWT_JTI = "jti";

    /**
     * 黑名单token前缀
     */
    public static final  String TOKEN_BLACKLIST_PREFIX = "auth:token:blacklist:";






}
